import { EnumDict } from "jmash-core";
import { Constant } from "@/constant";
import { EntryDict } from "jmash-dict";

// 数据字典
export class Dict {
  // 性别枚举
  static readonly genderEnum = new EnumDict(
    Constant.MODULE_RBAC,
    Constant.ENUM_GENDER,
  );
  // 资源类型枚举
  static readonly resourceTypeEnum = new EnumDict(
    Constant.MODULE_RBAC,
    Constant.ENUM_RESOURCE_TYPE,
  );
  // 第三方认证枚举
  static readonly opensTypeEnum = new EnumDict(
    Constant.MODULE_RBAC,
    Constant.ENUM_OPENS_TYPE,
  );
  static readonly dutyTypeEnum = new EnumDict(
    Constant.MODULE_RBAC,
    Constant.ENUM_DUTY_TYPE,
  );
  // 部门类型字典
  static readonly deptTypeDict = new EntryDict(Constant.DICT_DEPT_TYPE);
}
